'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});

var _extends2 = require('babel-runtime/helpers/extends');

var _extends3 = _interopRequireDefault(_extends2);

var _keys = require('lodash/keys');

var _keys2 = _interopRequireDefault(_keys);

var _omit = require('lodash/omit');

var _omit2 = _interopRequireDefault(_omit);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var getOmitDefaultProps = function getOmitDefaultProps(defaultProps, reactInstance, ReactClass) {
    return (0, _extends3.default)({}, defaultProps, (0, _omit2.default)(reactInstance.props, (0, _keys2.default)(ReactClass.defaultProps)));
};
exports.default = getOmitDefaultProps;